/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.base.service;

import com.xy.biz.base.domain.bo.EquipmentBO;
import com.xy.biz.base.domain.query.EquipmentQuery;
import com.xy.biz.base.domain.req.SaveEquipmentRequest;
import com.xy.lang.domain.Result;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author yzh
 * @date 2021-4-13
 */
public interface EquipmentService {

	/**
	 * 保存
	 *
	 * @param request
	 */
	Result<?> saveEquipment(SaveEquipmentRequest request);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	Result<?> saveAllEquipment(Collection<EquipmentBO> collection);

	/**
	 * 更新
	 *
	 * @param request
	 */
	Result<?> updateEquipment(SaveEquipmentRequest request);

	/**
	 * 更新状态
	 *
	 * @param request
	 */
	Result<?> updateEquipmentStatus(SaveEquipmentRequest request);

	/**
	 * 删除
	 *
	 * @param equipmentId
	 */
	Result<?> deleteEquipment(Long equipmentId);

	/**
	 * 查找一个
	 *
	 * @param equipmentId
	 * @return
	 */
	EquipmentBO getEquipment(Long equipmentId);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<EquipmentBO> listEquipmentById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<EquipmentBO> listEquipment(EquipmentQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countEquipment(EquipmentQuery query);

}
